package com.newer.dao.sys.mapper;

import com.newer.pojo.sys.Resource;
import com.newer.pojo.sys.ResourceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ResourceMapper {

	/**
	 * 删除
	 * 
	 * @param list
	 * @return
	 */
	int deleteResource(List<Integer> ids);

	/**
	 * 查询子集
	 * 
	 * @param list
	 * @return
	 */
	List<Integer> selectNodeIds(List<Integer> ids);

	long countByExample(ResourceExample example);

	int deleteByExample(ResourceExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Resource record);

	int insertSelective(Resource record);

	List<Resource> selectByExampleWithRowbounds(ResourceExample example, RowBounds rowBounds);

	List<Resource> selectByExample(ResourceExample example);

	Resource selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Resource record, @Param("example") ResourceExample example);

	int updateByExample(@Param("record") Resource record, @Param("example") ResourceExample example);

	int updateByPrimaryKeySelective(Resource record);

	int updateByPrimaryKey(Resource record);
}